Motorized prosthesis